<template>
  <div>
    <div class="header">
      <router-link to="/home">首页</router-link>
      <router-link to="/class">分类</router-link>
      <router-link to="/order">订单</router-link>
      <router-link to="/my">我的</router-link>
    </div>
    <div class="body">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="less">
.header {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  height: 100px;
  border-radius: 10px;
  background-color: tomato;
  a {
    flex: 1;
    height: 100%;
    border-radius: 10px;
    line-height: 100px;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    color: aqua;
    transition: all 0.3s;
    &.active {
      flex: 2;
      background-color: pink;
      color: purple;
    }
    &:hover {
      color: violet;
    }
  }
}
.body {
  text-align: center;
  img {
    width: 300px;
    height: 425px;
  }
}
</style>
